package com.ruoyi.city.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.city.mapper.HouseProvinceMapper;
import com.ruoyi.city.domain.HouseProvince;
import com.ruoyi.city.service.IHouseProvinceService;

/**
 * 省份信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-10
 */
@Service
public class HouseProvinceServiceImpl implements IHouseProvinceService 
{
    @Autowired
    private HouseProvinceMapper houseProvinceMapper;

    /**
     * 查询省份信息
     * 
     * @param provinceId 省份信息主键
     * @return 省份信息
     */
    @Override
    public HouseProvince selectHouseProvinceByProvinceId(Long provinceId)
    {
        return houseProvinceMapper.selectHouseProvinceByProvinceId(provinceId);
    }

    /**
     * 查询省份信息列表
     * 
     * @param houseProvince 省份信息
     * @return 省份信息
     */
    @Override
    public List<HouseProvince> selectHouseProvinceList(HouseProvince houseProvince)
    {
        return houseProvinceMapper.selectHouseProvinceList(houseProvince);
    }

    /**
     * 新增省份信息
     * 
     * @param houseProvince 省份信息
     * @return 结果
     */
    @Override
    public int insertHouseProvince(HouseProvince houseProvince)
    {
        return houseProvinceMapper.insertHouseProvince(houseProvince);
    }

    /**
     * 修改省份信息
     * 
     * @param houseProvince 省份信息
     * @return 结果
     */
    @Override
    public int updateHouseProvince(HouseProvince houseProvince)
    {
        return houseProvinceMapper.updateHouseProvince(houseProvince);
    }

    /**
     * 批量删除省份信息
     * 
     * @param provinceIds 需要删除的省份信息主键
     * @return 结果
     */
    @Override
    public int deleteHouseProvinceByProvinceIds(Long[] provinceIds)
    {
        return houseProvinceMapper.deleteHouseProvinceByProvinceIds(provinceIds);
    }

    /**
     * 删除省份信息信息
     * 
     * @param provinceId 省份信息主键
     * @return 结果
     */
    @Override
    public int deleteHouseProvinceByProvinceId(Long provinceId)
    {
        return houseProvinceMapper.deleteHouseProvinceByProvinceId(provinceId);
    }
}
